package app.dev.ems.data.model.impl;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;

import app.dev.ems.data.model.IBase;
import app.dev.ems.support.annotation.Model;

@Model
@MappedSuperclass
public abstract class Base implements IBase {

	private static final long serialVersionUID = -1433573674276444516L;
	
	private int id;

	public Base() {
		
	}
	
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)	
	@Column(name="ID")
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}
}
